home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / SShow_30_IDLE slideShowX.ls < prev    next >
Encoding:
Text File  |  1997-03-05  |  1.5 KB  |  57 lines

  1. on exitFrame
  2.   global SoundActive, gProgrmPathOnHD, OnceCheck, gAutoMode, gRecNumber, gDirection0IsBack1IsFwd, gPictureSprite, gElevatorSprite, gScrollBarSprite, gSlideListCstNum, gTitleCstNum, gFirstPictureCstNum, gDelayTime, gLinesNumber
  3.   if SoundActive and (soundBusy(1) = 0) then
  4.     sound playFile 1, gProgrmPathOnHD & "slides"
  5.   end if
  6.   if OnceCheck = 0 then
  7.     cursor(-1)
  8.     puppetSprite(9, 1)
  9.     repeat with i = 42 to 48
  10.       puppetSprite(i, 1)
  11.     end repeat
  12.     repeat with i = 9 to 16
  13.       if i <> 11 then
  14.         set the cursor of sprite i to [34, 35]
  15.       end if
  16.     end repeat
  17.   end if
  18.   puppetSprite(gPictureSprite, 1)
  19.   puppetSprite(gElevatorSprite, 1)
  20.   puppetSprite(7, 1)
  21.   updateScroll()
  22.   if gAutoMode then
  23.     slideShow(gDirection0IsBack1IsFwd)
  24.     startTimer()
  25.     repeat while the timer < gDelayTime
  26.     end repeat
  27.   end if
  28.   go(the frame)
  29. end
  30.  
  31. on mouseUp
  32.   global gAutoMode, gPictNumInOrder, RecipeNum, Choice
  33.   set bUp to the clickOn
  34.   if bUp = 9 then
  35.     set gAutoMode to 0
  36.     set the visible of sprite 10 to 1
  37.     updateStage()
  38.     set RecipeNum to gPictNumInOrder
  39.     clearPuppets()
  40.     set Choice to line RecipeNum of field "names" of castLib "lists"
  41.     set x to the number of lines in field "backField"
  42.     put marker(0) into line x + 1 of field "backField"
  43.     go(marker("slideP"))
  44.   else
  45.     if bUp > 41 then
  46.       buttonPressedUp(bUp, "Slides")
  47.     end if
  48.   end if
  49. end
  50.  
  51. on mouseDown
  52.   set bDown to the clickOn
  53.   if bDown > 41 then
  54.     buttonPressedDown(bDown, "Slides")
  55.   end if
  56. end
  57.